package cn.springdemo;

import org.apache.log4j.Logger;

/**
 * 第一个Spring程序，输出“反转的人生，如此惊艳！”
 */
public class HelloSpring {
    private Logger logger=Logger.getLogger(HelloSpring.class);
    //定义Hello属性，该属性的值将通过Spring框架进行设置
    private String hello=null;

    public String getHello() {
        return hello;
    }

    public void setHello(String hello) {
        this.hello = hello;
    }

    public void print(){
        logger.info("Spring say:,"+this.getHello());
    }
}
